<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改库存明细')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-boxItem-edit" th:object="${boxItem}">
        <input id="id" name="id" th:field="*{id}"  type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">箱号：</label>
            <div class="col-sm-8">
                <input id="boxCode" name="boxCode" th:field="*{boxCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">数量：</label>
            <div class="col-sm-8">
                <input id="quantity" name="quantity" th:field="*{quantity}" class="form-control" type="number">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">状态：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="subInventoryId" name="subInventoryId" th:field="*{subInventoryId}" class="form-control" type="int">-->
<!--            </div>-->
<!--        </div>-->

    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "in/boxItem";
    $("#form-boxItem-edit").validate({
        rules:{
            xxxx:{
                required:true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-boxItem-edit').serialize());
        }
    }
</script>
</body>
</html>
